package uicgas.register;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

import uicgas.tools.UicGasGeneralException;

public class RConfig
{
	private static final Properties RCONFIG = new Properties();
	static
	{
		InputStream inStream = RConfig.class
				.getResourceAsStream("config.properties");

		try
		{
			RCONFIG.load(inStream);
		}
		catch (IOException e)
		{
			throw new UicGasGeneralException(e);
		}
	}

	public static final String SERVER_IP = RCONFIG.getProperty("server.ip");

	public static final int SERVER_PORT = Integer.parseInt(RCONFIG
			.getProperty("server.port"));

	public static final int REGISTER_PORT = Integer.parseInt(RCONFIG
			.getProperty("register.port"));
}